-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Swift 6.0 docs pipeline #2966
base: main
Are you sure you want to change the base?
Conversation
Motivation: Documentation checking catches more issues in Swift 6.0. Modifications: Adopt the Swift 6.0 image and fix the errors. Result: More accurate docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Thanks for doing this Rick, I left a couple of comments on small things to fix.
} | ||
|
||
/// Set `option` to `value` on this `Channel`. | ||
/// - Parameters: | ||
/// - option: The option to set. | ||
/// - value: The new of the option. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// - value: The new of the option. | |
/// - value: The value of the option. |
@@ -321,15 +321,15 @@ extension ByteBuffer { | |||
/// Returns a hex dump of this `ByteBuffer` in a preferred `HexDumpFormat`. | |||
/// | |||
/// `hexDump` provides four formats: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apropos of nothing, "four" appears to no longer be correct here.
@preconcurrency | ||
@inlinable | ||
public func unwrap<NewValue: Sendable>( | ||
orReplace replacement: NewValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the docs and code are clearer in terms of replacement
here
/// passed in the `orElse` parameter. | ||
@inlinable | ||
@preconcurrency | ||
public func unwrap<NewValue>( | ||
orElse callback: @escaping @Sendable () -> NewValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I think callback
is clearer than orElse
in the docs etc.
Motivation:
Documentation checking catches more issues in Swift 6.0.
Modifications:
Adopt the Swift 6.0 image and fix the errors.
Result:
More accurate docs.